<?php

class Link extends Eloquent {

  public static $rules      = array(
      'block_id'       => 'exists:blocks,id|integer|required',
      'tempestuser_id' => 'exists:users,id|integer|required',
      'URL'            => 'required|between:1,255|URL',
      'title'          => 'required|between:1,50',
      'order'          => 'integer|required|between:1,1000',
  );
  protected $softDelete = true;

  public function block() {
    return $this->belongsTo('Block');
  }

}